package com.cyk.feigh;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-email", fallback = EmailFallback.class)
public interface EmailFeighClient {
    @GetMapping("/email/{email}/{code}")
    public Boolean email(@PathVariable String email, @PathVariable String code);
}
